<template>
  <router-view></router-view>
  <!-- 底部导航栏 -->
  <van-tabbar v-model="active" router>
    <van-tabbar-item icon="home-o" to="/">首页</van-tabbar-item>
    <van-tabbar-item icon="list-switching" to="/modify">分类</van-tabbar-item>
    <van-tabbar-item icon="cart-o" to="/cart">购物车</van-tabbar-item>
    <van-tabbar-item icon="manager-o" to="my">我的</van-tabbar-item>
  </van-tabbar>
</template>
<script setup>
import { ref } from "vue";
let active = ref(0);
</script>
<style lang="css" scoped></style>
